<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>化验单</title>
    <!-- Bootstrap -->
    <link href="__HCSS__bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="__HCSS__reset.css"/>
    <link rel="stylesheet" href="__HCSS__common.css"/>
    <link rel="stylesheet" href="__HCSS__index.css"/>
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <script>
        function check(id) {
            var frameSrc = "{:U('huayandan')}" + "?id=" + id;
            $("#chakan").attr("src", frameSrc);
            $('#chakanModal').modal({show: true, backdrop: 'static'});
        }
    </script>
    <style>
        #Laboratory .table {
            table-layout: fixed;
        }

        #Laboratory .table tr td:first-child {
            width: 100%;
            word-break: keep-all;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

        }

        #Laboratory .table thead th, #Laboratory .table tr td {
            width: 25%;
        }

        #yszd {
            width: 800px;
            height: 500px;
            border: 1px solid rgba(0, 0, 0, .2);
            border-radius: 6px;
            box-shadow: 0 3px 9px rgba(0, 0, 0, .5);

        }
        .yichu{
            height: 490px;
            overflow: hidden;
        }
        .navbar-form{
            line-height: 35px;
        }
    </style>
</head>
<body>
<div id="Laboratory" style="width:750px;padding:20px;margin:0 auto;"> <!--背景色、边框、阴影-->
    <table class="table table-bordered text-center table-hover">
        <thead>
        <tr class="success ">
            <th class="text-center"><b>检验项目</b></th>
            <th class="text-center"><b>日期</b></th>
            <th class="text-center"><b>化验结果</b></th>
            <th class="text-center"><b>操作</b></th>
        </tr>
        </thead>
        <tbody>
        <volist name="result" id="v">
            <tr>
                <td title="123"><a href="">{$v['item_title']}</a></td>
                <td>{:date('Y-m-d',$v['create_time'])}</td>
                <td>
                    <if condition="$v['reviewed'] eq 1">
                        通过
                        <else/>
                        未通过
                    </if>
                </td>
                <td><a href="javascript:;" class="btn-xs btn-success" data-toggle="modal" data-target="#myModal">查看</a></td>
            </tr>
        </volist>
        </tbody>
    </table>
    <a class="btn btn-danger text-center" id="btndd"  style="position: relative;top:275px;left:345px;">关闭</a>
</div>
<div class="modal fade yichu" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div style="width:750px;padding:20px;margin:0 auto;"> <!--背景色、边框、阴影-->
                    <form class="navbar-form">
                        <div class="form-group">
                            <b>化验项图片</b>
                            <a href="{:U('HealthRecord/EditResulted')}" target="_blank">
                                <img src="__HIMG__5.jpg" alt="" style="width:100px;"/>
                                <span>点击编辑图片</span>
                            </a>
                        </div>

                        <div>
                            <label for="doc_name">医生指导：</label>

                            <div class="radio" style="margin-left:10px;">
                                <label>
                                    <input style="margin:-1px 5px 0 0;" type="radio" name="optRadios"
                                           id="optRadios1" value="option1" checked>通过
                                </label>
                            </div>
                            <div class="radio" style="margin-left:10px;">
                                <label>
                                    <input style="margin:-1px 5px 0 0;" type="radio" name="optRadios"
                                           id="optRadios2" value="option2">未通过
                                </label>
                            </div>
                            <br/>
                            <textarea id="doc_name" name="doc_name" cols="68" rows="6"
                                      style="resize:none;line-height: 30px" placeholder="请输入">
                            </textarea>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary">确定</button>
                </div>
            </div>
        </div>
    </div>
</div>
    <script src="__HJS__jquery-2.1.1.js"></script>
    <script src="__HJS__bootstrap.js"></script>
<script>
    $("#btndd").click(
            function(){
                window.parent.$('#chakanModal').modal("hide");
            }
    );
</script>
</body>
</html>